<template>
	<div>
		<p>AComp</p>
		<p>{{ value }}</p>
		<button @click="update">更新</button>
	</div>
</template>

<script>
export default {
	name: "AComp",
	props: {
		value: {
			type: Number,
			required: true,
		},
	},
	methods: {
		update() {
			this.$emit("input", this.value + 1);
		},
	},
};
</script>

<style></style>
